

export const allRoutes = [
    {
        path: '/login',
        component: () => import('@/views/login/index.vue'),
        meta: {
            title: '登录',
            hidden: true,
            icon: 'House',
        },
    },
    {
        path: '/',
        component: () => import('@/views/index.vue'),
        name: '/',
        meta: {
            title: '',
            hidden: false,
            icon:'',
        },
        redirect:'/home',
        children: [
            {
                path: '/home',
                component: () => import("@/views/home/index.vue"),     
                meta: {
                    title: '首页',
                    hidden: false,
                    icon:'HomeFilled',
                }
            },
            {
                path:'/teacherList',
                component:()=>import('@/views/teacherList/index.vue'),
                meta:{
                    title:'教师列表',
                    hidden: false,
                    icon:'User',
                }
            },
            {
                path: '/classList',
                component: () => import("@/views/classList/index.vue"),
                meta:{
                    title:'课程列表',
                    hidden: false,
                    icon:'Notebook',
                }
            }
        ]
    },
    {
        path: '/:pathMatch(.*)*',
        redirect: '/404',
        meta: {
            title: "登录",
            hidden: true,
            icon: 'House',
        }
    },
    {
        path: '/404',
        component: () => import('@/views/404/index.vue'),
        name: '404',
        meta: {
            title: "404",
            hidden: true,
            icon: 'House',
        }
    },

]